
export function globalNotify(vue,response) {
  vue.$notify({
    title: response.data.code == 0 ? '成功' : '失败',
    message: response.data.msg,
    type: response.data.code == 0 ? 'success' : 'error',
    duration: 3000
  })
}

export function globalWarning(vue,msg) {
  vue.$notify({
    message: msg,
    type:  'warning',
    duration: 3000
  })
}
